﻿namespace Sage.WindowsProcess.Models
{
    /// <summary>
    /// 父进程信息实体类，包含ID、名称和路径
    /// </summary>
    public class ParentProcessInfo(int id, string name, string path)
    {
        /// <summary>
        /// 父进程ID
        /// </summary>
        public int Id { get; set; } = id;
        /// <summary>
        /// 父进程名称
        /// </summary>
        public string Name { get; set; } = name;
        /// <summary>
        /// 父进程路径
        /// </summary>
        public string Path { get; set; } = path;

        /// <summary>
        /// 严重是否获取到有效的父进程信息
        /// </summary>
        /// <returns></returns>
        public bool IsValid() => Id > 0;
    }
}
